#pragma once
#include<iostream>
using std::ostream;
using std::istream;

class SimpleString
{
private:
	static const int N = 1000;
	char str[N];
public:
	int length();
	void input();
	void output();
	SimpleString operator+(const SimpleString& b)const;
	
	SimpleString(const char* str = nullptr);
	~SimpleString();
	SimpleString(const SimpleString& );
	SimpleString &operator=(const SimpleString& );
	friend ostream& operator<<(ostream& ot, const SimpleString& s);
	friend istream& operator>>(istream& it, SimpleString& s);
};

ostream& operator<<(ostream& ot, const SimpleString& s);
istream& operator>>(istream& it, SimpleString& s);
